package com.djhu.newscollector.crawel.imp.holder;

/**
 * Created by zw on 2018/2/11.
 */
public class RedisProperties {
    public static final int DEFAULT_MAXIDLE = 30;
    public static final int DEFAULT_MAXACTIVE = 30;
    public static final boolean DEFAULT_TESTONBORROW = true;

    private String ip;
    private Integer port;
    private String auth;

    private Integer maxIdle = DEFAULT_MAXIDLE;
    private Integer maxActive  = DEFAULT_MAXACTIVE;
    private Boolean testOnBorrow = DEFAULT_TESTONBORROW;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public Integer getMaxIdle() {
        return maxIdle;
    }

    public void setMaxIdle(Integer maxIdle) {
        this.maxIdle = maxIdle;
    }

    public Integer getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
    }

    public Boolean getTestOnBorrow() {
        return testOnBorrow;
    }

    public void setTestOnBorrow(Boolean testOnBorrow) {
        this.testOnBorrow = testOnBorrow;
    }
}